package com.niuwa.p2p.service.impl.custService;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.custservice.ImportCustRuleDao;
import com.niuwa.p2p.entity.custservice.ImportCustRule;
import com.niuwa.p2p.service.custService.IImportCustRuleService;

/**
 *@author futianliang
 *@date 2015年4月29日
 */
@Service
public class ImportCustRuleServiceImpl implements IImportCustRuleService{
 @Autowired
 private ImportCustRuleDao ImportCustRule;
	@Override
	public int deleteByPrimaryKey(Long id) {
		ImportCustRule.deleteByPrimaryKey(id);
		return 0;
	}

	@Override
	public int insert(ImportCustRule record) {
		return ImportCustRule.insert(record);
	}

	@Override
	public int insertSelective(ImportCustRule record) {
		return ImportCustRule.insertSelective(record);
	}

	@Override
	public ImportCustRule selectByPrimaryKey(Long id) {
		return ImportCustRule.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(ImportCustRule record) {
		return ImportCustRule.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(ImportCustRule record) {
		return ImportCustRule.updateByPrimaryKey(record);
	}

	@Override
	public List<ImportCustRule> getImportCustRuleList() {
		return ImportCustRule.getImportCustRuleList();
	}

}
